home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggeeeettttppppiiiidddd((((2222)))) ggggeeeettttppppiiiidddd((((2222)))) NNNNAAAAMMMMEEEE _gggg_eeee_tttt_pppp_iiii_dddd, _gggg_eeee_tttt_pppp_gggg_rrrr_pppp, _gggg_eeee_tttt_pppp_pppp_iiii_dddd, _gggg_eeee_tttt_pppp_gggg_iiii_dddd, _BBBB_SSSS_DDDD_gggg_eeee_tttt_pppp_gggg_rrrr_pppp - get process, process group, and parent process IDs SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>> _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>> _pppp_iiii_dddd______tttt _gggg_eeee_tttt_pppp_iiii_dddd_((((_vvvv_oooo_iiii_dddd_))))_;;;; _pppp_iiii_dddd______tttt _gggg_eeee_tttt_pppp_gggg_rrrr_pppp_((((_vvvv_oooo_iiii_dddd_))))_;;;; _pppp_iiii_dddd______tttt _gggg_eeee_tttt_pppp_pppp_iiii_dddd_((((_vvvv_oooo_iiii_dddd_))))_;;;; _pppp_iiii_dddd______tttt _gggg_eeee_tttt_pppp_gggg_iiii_dddd_((((_pppp_iiii_dddd______tttt _pppp_iiii_dddd_))))_;;;; _pppp_iiii_dddd______tttt _BBBB_SSSS_DDDD_gggg_eeee_tttt_pppp_gggg_rrrr_pppp_((((_pppp_iiii_dddd______tttt _pppp_iiii_dddd_))))_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _gggg_eeee_tttt_pppp_iiii_dddd returns the process ID of the calling process. _gggg_eeee_tttt_pppp_gggg_rrrr_pppp returns the process group ID of the calling process. The _BBBB_SSSS_DDDD_gggg_eeee_tttt_pppp_gggg_rrrr_pppp form is provided for Berkeley compatibility. If the pid_t is 0, it is the same as the _gggg_eeee_tttt_pppp_gggg_rrrr_pppp form, otherwise it returns the process group for the argument, if the process exists. _gggg_eeee_tttt_pppp_pppp_iiii_dddd returns the parent process ID of the calling process. _gggg_eeee_tttt_pppp_gggg_iiii_dddd returns the process group ID of the process whose process ID is equal to _p_i_d, or the process group ID of the calling process, if _p_i_d is equal to zero. _gggg_eeee_tttt_pppp_gggg_iiii_dddd will fail if one or more of the following is true: _EEEE_PPPP_EEEE_RRRR_MMMM If the process whose process ID is equal to _p_i_d is not in the same session as the calling process, the implementation does not allow access to the process group ID of that process from the calling process. Under IRIX, access to the group ID of that process is always allowed to the calling process. _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS In the Trusted IRIX environment, the MAC label of the current process does not dominate and is not equal to the MAC label of the process _p_i_d , and the current process does not have the CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD capability. _EEEE_IIII_NNNN_VVVV_AAAA_LLLL The _p_i_d is out of range or is an invalid argument. _EEEE_SSSS_RRRR_CCCC_HHHH There is no process with a process ID equal to _p_i_d. PPPPaaaaggggeeee 1111 ggggeeeettttppppiiiidddd((((2222)))) ggggeeeettttppppiiiidddd((((2222)))) SSSSEEEEEEEE AAAALLLLSSSSOOOO _eeee_xxxx_eeee_cccc(2), _ffff_oooo_rrrr_kkkk(2), _gggg_eeee_tttt_pppp_iiii_dddd(2), _gggg_eeee_tttt_ssss_iiii_dddd(2), _iiii_nnnn_tttt_rrrr_oooo(2), _ssss_eeee_tttt_pppp_gggg_iiii_dddd(2), _ssss_eeee_tttt_ssss_iiii_dddd(2) _ssss_eeee_tttt_pppp_gggg_rrrr_pppp(2), _ssss_iiii_gggg_nnnn_aaaa_llll(2), _cccc_aaaa_pppp_aaaa_bbbb_iiii_llll_iiii_tttt_iiii_eeee_ssss(4), _dddd_oooo_mmmm_iiii_nnnn_aaaa_nnnn_cccc_eeee(5). DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS Upon successful completion, _gggg_eeee_tttt_pppp_gggg_iiii_dddd returns a process group ID. Otherwise, a value of (_pppp_iiii_dddd______tttt) -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error. PPPPaaaaggggeeee 2222